﻿@{
    Layout = null;
    decimal totalMoney = (decimal)ViewData["totalMoney"];
    string shipPrice = totalMoney > new Ec_System.Facade.Web.SiteConfigFacade().ShipfreePrice ? "0" : new Ec_System.Facade.Web.SiteConfigFacade().ShipPrice.ToString();
    decimal factMoney = totalMoney > new Ec_System.Facade.Web.SiteConfigFacade().ShipfreePrice ? totalMoney : totalMoney + new Ec_System.Facade.Web.SiteConfigFacade().ShipPrice;
}
@model EC_System.Models.CustomerData
<script type="text/javascript">
    $(document).ready(function () {
        $("#orderForm").validate({
            rules: {
                pwd: { required: true }
            },

            messages: {
                pwd: { required: "请输入支付密码！" }
            }
        });
    });
</script>

<div class="block clearfix">
    <div id="ECS_COMMENT">
        <div class="box_1">
            <div class="ur_here">
                <a href="">首页</a> <code>&gt;</code> 购物车 <code>&gt;</code> 订单确认
            </div>
            <div class="h3_2">
                <div>
                    <img src="~/Content/images/car.jpg" style="float:left" width="30" height="30" /><h1>订单确认</h1>
                </div>
            </div>
            <form action="/ShopCart/CheckOut" method="post" id="orderForm">
                @Html.AntiForgeryToken()
                <div class="boxCenterList">
                    <div class="title">1.收货地址：</div>
                    <div style="padding-left:20px">
                        @foreach (var item in Model.CustomerAdress)
                        {
                            <div class="OrderAdress">
                                <input type="radio" name="adrID" value="@item.ID" />@item.AdressMain
                                <div>收 货 人： @item.Recever </div>
                                <div>电话号码：@item.PhoneNum</div>
                                <div>备用号码：@item.TelNum</div>
                            </div>
                        }

                    </div>
                    <div style="clear:both"></div>
                    <div class="line"></div>

                    <div class="title">2.送货时间：</div>
                    <div style="padding-left:20px">
                        <input type="radio" id="TID" name="shipType" value="1" checked />工作日/周末/假日均可<br>
                        <input type="radio" id="TID" name="shipType" value="2" /> 仅周末送货<br>
                        <input type="radio" id="TID" name="shipType" value="3" />仅工作日送货<br>
                    </div>
                    <div class="line"></div>

                    <div class="title">3.订单概要信息：</div>
                    <div style="padding-left:20px">
                        订单金额：<span class="td_price">@totalMoney.ToString("C")元</span><br>
                        运&emsp;&emsp;费：<span class="td_price">@shipPrice </span>元   <br>
                        实付金额：<span class="td_price">@factMoney.ToString("C")</span>元<br>
                        订单积分：@totalMoney.ToString("0")个
                    </div>
                    <div class="line"></div>

                    <div class="title">4.支付方式：</div>
                    <div style="padding-left:20px">
                        <input type="radio" id="PayID" name="PayID" value="1" checked />余额支付(当前余额：<span class="td_price">@Model.BalanceMoney</span>元)<br>
                    </div>
                    <div class="line"></div>

                    <div class="title">5.支付密码：</div>
                    <div style="padding-left:20px">
                        <input type="password" id="pwd" name="pwd" value="" />&emsp;<span>* 支付密码，不是登录密码！</span><span class="td_price">@TempData["payPwdError"] </span>
                    </div>
                    <div class="bottom_txt in1 h3" style="text-align:right">
                        <input type="submit" value="" class="btn_checkOut" />
                    </div>
                </div>

            </form>
        </div>

    </div>
</div>
